package com.runrunfast.fxj.config.redis;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

/**
* @author lgt
 * @time 2018/12/13
 * @description：
 */
@Configuration
@ConfigurationProperties(prefix = RedisProperties.PREFIX)
@Data
@EqualsAndHashCode(callSuper = false)
@Order(-1)
public class RedisProperties {

    public static final String PREFIX = "spring.redis";

    private Integer database;

    private String host;

    private Integer port;

    private String password;

    private Integer timeout;
    /**
     * 默认30天 = 2592000s
     */
    private Integer expire = 2592000;

}
